package cn.jy.generate.utils;

import com.sun.net.httpserver.SimpleFileServer;

import java.net.InetSocketAddress;
import java.nio.file.Path;

public class WebServer {

    public static void main(String[] args) {
        var server = SimpleFileServer.createFileServer(new InetSocketAddress(8000),
                Path.of("C:\\Users\\Administrator\\Downloads"),
                SimpleFileServer.OutputLevel.INFO);
        server.start();
    }
}
